<template>
  <div class="dashboard-container">
    <div class="app-container">
      <el-card>
        <PageTool :show-before="true">
          <template v-slot:before>
            <el-button type="primary" size="small">添加房产</el-button>
          </template>
          <template v-slot:after>
            <!-- <el-select slot="prepend" v-model="select" placeholder="全部分类">
              <el-option label="餐厅名" value="1" />
              <el-option label="订单号" value="2" />
              <el-option label="用户电话" value="3" />
            </el-select> -->
            <el-select slot="prepend" v-model="select" placeholder="全部经纪">
              <el-option label="餐厅名" value="1" />
              <el-option label="订单号" value="2" />
              <el-option label="用户电话" value="3" />
            </el-select>
            <el-input placeholder="请输入关键字">
              <template slot="append">筛选</template>
            </el-input>
          </template>
        </PageTool>
        <template>
          <el-table :data="tableData" border style="width: 100%">
            <el-table-column prop="date" label="封面" width="120px" />
            <el-table-column prop="name" label="标题" width="120px" />
            <el-table-column prop="date" label="标签" width="120px" />
            <el-table-column prop="name" label="地址" width="120px" />
            <el-table-column prop="date" label="分类" width="120px" />
            <el-table-column prop="name" label="经纪" width="120px" />
            <el-table-column prop="name" label="价格" width="120px" />
            <el-table-column prop="name" label="介绍" width="120px" />
            <el-table-column prop="name" label="图片" width="120px" />
            <el-table-column prop="address" label="操作">
              <template>
                <el-button type="primary" size="small">编辑</el-button>
                <el-button type="danger" size="small">删除</el-button>
              </template>
            </el-table-column>
          </el-table>
          <!-- 分页器 -->
          <el-row type="flex" justify="center">
            <el-pagination class="page" :page-size="20" :pager-count="11" layout="prev, pager, next" :total="50" />
          </el-row>
        </template>
      </el-card>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tableData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }]
    }
  }
}

</script>
<style lang="scss" scoped>
::v-deep .el-table td {
  padding: 120px 0;
}

.page {
  padding-top: 30px;
}
</style>
